<!--S 主体-->
<div class="main" id="my_photo">
  <!--S 主页导航-->
  <%= render(:partial => "/shared/profile_nav") %>
  <!--S 全部日志-->
  <div id="my_all_log" class="mod all_log">
    <!--S 模块标题-->
    <div class="title bg_1">
      <h3>我的日志</h3>
      <a href="/user/blogset.htm" class="title_link"><%= image_tag "icon.gif", :alt=>"日志设置", :title=>"日志设置", :class=>"icon_set" %>日志设置</a>
      <a href="<%= new_member_blog_path -%>" class="title_link"><%= image_tag "icon.gif", :alt=>"写新日志", :title=>"写新日志", :class=>"icon_blog" %>写新日志</a>
    </div>
    <!--E 模块标题-->
    <!--S 日志列表-->
    <div class="content" id="content">
      <% if @blogs.blank? %>
      <p class="tips_2" id="noshowtips" style="display:none">
	你的日志设置为“不显示空间日志”，其他人无法再城市达人看到你的日志。可点击右上角的“日志设置”按钮修改设置
      </p>
      <% end %>
      <ul class="list" id="bloglist">
        <% for blog in @blogs %>
        <li class="bor_b_1">
          <div class="list_cont">
            <div class="tit">
              <h4><%= link_to (h blog[:title]), member_blog_path(@member,blog) %></h4>
              <button title="展开" class="icon" onclick="scrollBlog('{id}',this)" open="0"><%= image_tag "icon.gif", :alt=>"展开", :title=>"展开", :class=>"icon_down" %><span>展开</span></button>
              <% if current? @member %>
                <%= link_to "删除", member_blog_path(@member,blog), :confirm => 'Are you sure?', :method => :delete, :class=>"c_6 op_bt" %>
                <%= link_to "编辑", edit_member_blog_path(@member,blog), :class => "c_6 op_bt" %>
              <% end %>
            </div>
            <div class="info">
              <p>
                <span class="time c_2"><%= status_time_ago_in_words blog[:created_at] %>发表</span>
                <span>分类：{category}</span>
                <span>浏览(<%= link_to blog[:view], member_blog_path(@member,blog) %>)</span>
                <span>评论(<%= link_to blog.comments.recent.size, member_blog_path(@member,blog) %>)</span>
              </p>
            </div>
            <div class="log_cont" id="con_{id}" style="display:none"></div>
            <div class="view_box">
              <p class="view_all"><%= link_to "查看全文&gt;&gt;", member_blog_path(@member,blog) %></p>
            </div>
          </div>
        </li>
        <% end %>
      </ul>
    </div>
    <!--E 日志列表-->
    <!--S 翻页-->
    <div class="page_tags" id="page">
      <%= will_paginate @blogs %>
    </div>
    <!--E 翻页-->
  </div>
  <!--E 全部日志-->
</div>
<!--E 主体-->